#pragma once

#include <cppunit/config/SourcePrefix.h>
#include "TestSynTableEntry.h"
#include "Synonym.h"
#include "SynTableEntry.h"
#include <string>

using namespace std;

void TestSynTableEntry::setUp()
{
}

void TestSynTableEntry::tearDown() 
{
}

	
void testCheckValues()
{
	vector<int> testValues, testValuesB;
	testValues.push_back(1);
	testValues.push_back(2);

	testValuesB.push_back(1);
	testValuesB.push_back(2);
	testValuesB.push_back(10);
	
	Synonym *synA = new Synonym(Q_ASSIGN, "a");
	SynTableEntry testEntry(synA, 0);

	testEntry.addValues(testValues);

	testEntry.checkValues(testValuesB);

	CPPUNIT_ASSERT_EQUAL(testEntry.getValues().size(), testValues.size());
	CPPUNIT_ASSERT_EQUAL(testEntry.getValues().at(0), testValues.at(0));
}